package com.kaifamiao.store.system.service;

import cn.hutool.core.lang.tree.Tree;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kaifamiao.store.system.domain.Menu;

import java.util.List;

/**
* @author 10854
* @description 针对表【sys_menu】的数据库操作Service
* @createDate 2023-12-11 10:59:39
*/
public interface MenuService extends IService<Menu> {


    List<Menu> selectMenusByRoleIds(Integer... roleIds);

    List<Tree<Integer>> buildTreeWithMenus(List<Menu> menus);

    List<Tree<Integer>> selectMenuTreeByRoleIds(Integer... roleIds);
}
